<?php
define('MICROTIME_START',microtime(TRUE));

error_reporting(E_ALL);
ini_set('display_errors','On');
header('Content-type: text/plain;charset=utf-8');

require_once 'init.inc.php';
$a = microtime(TRUE);
$rows = $db->select('*')
						->from('ip2country')
						->limit(1000)
						->qcache('ip2country') // query generation cache
						->cacheStorage('memory_if_possible')
						->cachedExecute(NULL,1000) // executing with result cache
						->limit(500,100)
//						->fields('start_long')
						->fetchRowset()
				;
var_dump(microtime(TRUE)-MICROTIME_START);
var_dump($rows);